import hanlp

ner = hanlp.load(hanlp.pretrained.ner.MSRA_NER_ELECTRA_SMALL_ZH)

tok = hanlp.load(hanlp.pretrained.tok.COARSE_ELECTRA_SMALL_ZH)

res = tok("怎样做才能避免拒签？新浪出国频道邀请到美国使馆签证处的签证官江德力")

re = ner(res)


print(re)
